home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ ATI128 1.xpl < prev    next >
Text File  |  2000-08-07  |  5KB  |  139 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Hardware\Video Cards\ATI 128"
  5. "NAME"="General Settings"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Display ATI icon on desktop"
  9. "TEXT 2"="Enable Pentium III(TM) commands"
  10. "TEXT 3"="Enable 2D acceleration"
  11. "TEXT 4"="Enable 3D acceleration"
  12. "DESCRIPTION 1"="Some options for your ATI128 card."
  13. "DESCRIPTION 2"="If ATI icon is enabled, it displays the ATI icon. 
  14. "DESCRIPTION 3"="If Pentium III command are enabled it may improves the performance.  Enable this if ONLY if you have a Pentium III processor or higher. Disable it if you have any other CPU (e.g. AMD, Cyrix etc.)
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  20.  
  21.  
  22. '-- ONLY CHANGE THE LINES WITHOUT ' at the beginning !!
  23. '
  24. '*** Xteq Systems "On/Off" Plug-in Template ***
  25. '*** ID_XQ_PT1 V1.00 
  26.  
  27.  ' how many settings are in this file (change "COUNT=" also!) 
  28.  CountSettings=4
  29.  
  30.  ' does this plug-in requires the user to logoff or to restart his PC?
  31.  bRequireLogoff=0
  32.  bRequireRestart=1
  33.  
  34.  ' if this path exists in the registry, the plug-in will be enabled. if it does
  35.  ' not exist, the plug-in will be disable set to ="" to ignore this check and alway
  36.  ' enable the plug-in, regardless if the path exists or not
  37.  sCheckPath="HKLM\Software\ATI Technologies\Driver\"
  38.  
  39.  
  40.  ' Settings for Value # 1
  41.  sV1_Path="HKLM\Software\ATI Technologies\Desktop\EnableIcon"
  42.  sV1_OnValue="1"      'what is the "ON" value (e.g. "1", "True", "On" etc.)
  43.  sV1_OffValue="0"      'what is the "OFF" value (e.g. "0", "False", "Off" etc.)
  44.  sV1_DataType="1"     'datatype of this value (REG_STRING=1, REG_DWORD=2, REG_BINARY=3, REG_EXPAND_SZ=4)
  45.  
  46.  ' Settings for Value # 2
  47.  sV2_Path="HKLM\Software\ATI Technologies\Driver\ddhal\EnableKatmai" 
  48.  sV2_OnValue="1"      
  49.  sV2_OffValue="0"      
  50.  sV2_DataType="1"     
  51.  
  52.  ' Settings for Value # 3
  53.  sV3_Path="HKEY_LOCAL_MACHINE\Software\ATI Technologies\CDS\0000\0\ASIC\2D Acceleration"
  54.  sV3_OnValue="Yes (0x00000001)"      'what is the "ON" value (e.g. "1", "True", "On" etc.)
  55.  sV3_OffValue="No (0x00000000)"      'what is the "OFF" value (e.g. "0", "False", "Off" etc.)
  56.  sV3_DataType="1"     'datatype of this value (REG_STRING=1, REG_DWORD=2, REG_BINARY=3, REG_EXPAND_SZ=4)
  57.  
  58.  ' Settings for Value # 4
  59.  sV4_Path="HKEY_LOCAL_MACHINE\Software\ATI Technologies\CDS\0000\0\ASIC\3D Acceleration" 
  60.  sV4_OnValue="Yes (0x00000001)"      
  61.  sV4_OffValue="No (0x00000000)"      
  62.  sV4_DataType="1"     
  63.  
  64.  
  65.  ' Settings for Value # 5
  66.  sV5_Path="HKCU\Software\Hypernix\Gooey\Network\AllwaysOntop" 
  67.  sV5_OnValue="1"      
  68.  sV5_OffValue="0"      
  69.  sV5_DataType="2"     
  70.  
  71. '*** Xteq Systems "On/Off" Plug-in Template ***
  72. '
  73. '-- STOP CHANGES HERE !!
  74.  
  75.  
  76.  
  77. Sub Plugin_Initialize 
  78.  If Len(sCheckPath)>0 then
  79.     if left(sCheckPath,1)<>"\" then sCheckPath=sCheckPath & "\"
  80.  
  81.     b=RegPathExists(sCheckPath)
  82.     if b=true then
  83.        Call ReadSettings
  84.     else
  85.        Call Disable
  86.     end if  
  87.  else
  88.     Call ReadSettings
  89.  end if
  90. End Sub
  91.  
  92. Sub ReadSettings
  93.                            Call ReadSettingsEx(1,sV1_Path,sV1_OnValue)
  94.   if CountSettings>=2 then Call ReadSettingsEx(2,sV2_Path,sV2_OnValue)
  95.   if CountSettings>=3 then Call ReadSettingsEx(3,sV3_Path,sV3_OnValue)
  96.   if CountSettings>=4 then Call ReadSettingsEx(4,sV4_Path,sV4_OnValue)
  97.   if CountSettings>=5 then Call ReadSettingsEx(5,sV5_Path,sV5_OnValue)
  98. End Sub
  99.  
  100. Sub ReadSettingsEx(ID,REGP,VALON)
  101.  s=RegReadValue(REGP)
  102.  'Call DebugMsg("VAL:" & s & " ID:" & ID & " VAL_ON:" & VALON)
  103.  if CStr(s)=VALON then
  104.     Call SetUIElement(ID,true)
  105.  End if 
  106. End Sub
  107.  
  108.  
  109. Sub Plugin_CheckData(ElementIndex)
  110. End Sub
  111.  
  112.  
  113. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  114.                           Call WriteSettings(GetUIElement(1),sV1_Path,sV1_OnValue,sV1_OffValue,sV1_DataType)
  115.  if CountSettings>=2 then Call WriteSettings(GetUIElement(2),sV2_Path,sV2_OnValue,sV2_OffValue,sV2_DataType)
  116.  if CountSettings>=3 then Call WriteSettings(GetUIElement(3),sV3_Path,sV3_OnValue,sV3_OffValue,sV3_DataType)
  117.  if CountSettings>=4 then Call WriteSettings(GetUIElement(4),sV4_Path,sV4_OnValue,sV4_OffValue,sV4_DataType)
  118.  if CountSettings>=5 then Call WriteSettings(GetUIElement(5),sV5_Path,sV5_OnValue,sV5_OffValue,sV5_DataType)
  119.  
  120.  
  121.  if bRequireLogoff then Logoff()
  122.  if bRequireRestart then Restart()
  123. End Sub
  124.  
  125. Sub WriteSettings(CUR_VAL,REGP,ON_VAL,OFF_VAL,DAT_TYPE)
  126.   if CUR_VAL=true then
  127.      Call RegWriteValue(REGP,ON_VAL,DAT_TYPE)
  128.   else
  129.      Call RegWriteValue(REGP,OFF_VAL,DAT_TYPE)
  130.   end if
  131. End Sub
  132.  
  133.  
  134. Sub Plugin_Terminate 
  135. End Sub
  136.  
  137.  
  138.  
  139.